package com.jishuo.base.dao;

import com.jishuo.base.bean.vo.UserVO;
import com.jishuo.nontax.bean.vo.BankStationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户管理
 */
@Mapper
public interface UserMapper {
    UserVO getUser(long userId);
    UserVO getUserByCode(String userCode);
    List<UserVO> listUser(UserVO user);
    int addUser(UserVO user);
    int saveUser(UserVO user);
    int deleteUser(long userId);
    int resetUserPwd(@Param("userId") long userId, @Param("userPwd") String userPwd);
    int editMenuUserId(UserVO user);
    int editBankUserId(UserVO user);
    int editUserPwd(@Param("usercode")String usercode,@Param("oldPassword")String oldPassword,@Param("newPassword")String newPassword);

    List<BankStationVO> listBankStation(@Param("bankStationCode") String bankStationCode);

    int getUserCount(@Param("userpwd")String userpwd,@Param("usercode")String usercode);
}
